package com.suzus.graph.client;

import com.suzus.graph.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "medicine-graph")
public interface GraphFeignClient {

    @GetMapping("/neo4j/findAllRelationShips")
    public Result findAllRelationShips();

    @GetMapping("/neo4j/findMedicineRelationShips/{medicine}")
    public Result findMedicineRelationShips(@PathVariable("medicine") String medicine);

//    @GetMapping("/neo4j/findMedicineRelationShips")
//    public Result findMedicineRelationShips1(@RequestParam String medicine);

    @GetMapping("/neo4j/findSymptomRelationShips/{symptom}")
    public Result findSymptomRelationShips(@PathVariable("symptom") String symptom);

}
